package com.woniuxy.enjoylife.mapper;

import com.woniuxy.enjoylife.entity.Community;
import com.woniuxy.enjoylife.entity.House;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface HouseMapper {

    //通过用户和房屋id 修改默认房屋
    public int updateDefHouse(int id);
    //取消原来的默认房屋
    public int cancleDefHouse(int uid);
    //通过房屋id 删除认证房屋
    public int delHouse(int id);
    //新增认证房屋
    public int insertHouse(House house);
    //修改房屋
    public int updateHouse(House house);
    //查看房屋是否已被其他业主认证
    public int isCertification(House house);


    //通过用户id获取默认的房屋信息
    House selectHouse(int uid);

}
